package com.jc.service.sys.impl;

import com.jc.base.page.Page;
import com.jc.base.ResultData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jc.dao.sys.SysBannerDao;
import com.jc.domain.sys.SysBanner;
import com.jc.service.sys.SysBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jc.base.Assert;
import com.jc.repository.generator.utils.Condition;
import com.jc.repository.generator.utils.ConditionsExtend;
import com.jc.utils.CollectionUtils;

import java.util.List;

/**
 * @author
 * @create 2016-12-13 09:32:26
 * @description
 */

@Service
public class SysBannerServiceImpl implements SysBannerService {

    private static final Logger LOGGER = LoggerFactory.getLogger(SysBannerServiceImpl.class);

    @Autowired
    private SysBannerDao sysBannerDao;

    //this function automatic generated by application
    @Override
    public SysBanner querySysBannerById(Long id) {
        return sysBannerDao.querySysBannerById(id);
    }

    //this function automatic generated by application
    @Override
    public List<SysBanner> saveOrInsertList(List<SysBanner> sysBanners) {
        return sysBannerDao.saveOrInsertList(sysBanners);
    }

    //this function automatic generated by application
    @Override
    public SysBanner saveOrInsert(SysBanner sysBanner) {
        return sysBannerDao.saveOrInsert(sysBanner);
    }

    //this function automatic generated by application
    @Override
    public boolean deleteSysBannerById(Long id) {
        return sysBannerDao.deleteSysBannerById(id);
    }


}